package com.efei.jdbc.config;

import com.efei.jdbc.dao.QueryDao;
import com.efei.jdbc.dao.SimpleQueryDao;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Author efei
 * 默认
 */
public class DefaultQueryDaoFactoryBean implements QueryDaoFactoryBean {

    @Override
    public QueryDao getObject() throws Exception {
        return new SimpleQueryDao();
    }

    @Override
    public Class<SimpleQueryDao> getObjectType() {
        return SimpleQueryDao.class;
    }

}
